package com.example.myblog.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;

import lombok.Data;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 消息管理
 * </p>
 *
 * @author 叶兴
 * @since 2022-09-29
 */
@Data
@TableName("message")
public class Message implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 消息发送者
     */
    @TableField("message_send")
    private String messageSend;

    /**
     * 消息接收者
     */
    @TableField("message_receive")
    private String messageReceive;

    /**
     * 消息内容
     */
    @TableField("message_text")
    private String messageText;

    /**
     * 发送时间
     */
    @TableField("message_time")
    private LocalDateTime messageTime;


}
